var PW = PW || {};

PW.myVenue = {

    options:function (options) {
        var _this = this;
        console.log('options:');
        console.log(options);

        this.opt = options;
    },

    data:{},

    load:function () { },

    el:{ },

    events:function () {
        var _this = this;

        $('#my-details input, #my-details select, #my-details textarea').on('keyup change',function () {
            var formData = $('#my-details').serializeObject();
            console.log('formData', formData);

            var obj = {};
            obj.action = 'save_venue';
            obj.form = formData;

            PW.ajax(obj, function (response) {});
        })

    },

    init:function (options) {
        this.options(options);
        this.events();
    }
};